#ifndef __HardwareProfile_h__
#define __HardwareProfile_h__
#define FCY 8000000
#include "p30F2012.h"
#include <libpic30.h>
#include "dsp.h"
#include "afx.h"


#define Uart_Uart1
#define Uart1_TRMT U1STAbits.TRMT
#define Uart1_TXREG U1TXREG
#include "Uart.h" 

#define PWMTime 300

#define PWMDelay 3000

#define ADDelay 96
#define ADDelay1 100

#define ADTimes 4970

#define ADTh 983

extern unsigned int RealPosition;
extern unsigned char WaveCount;
extern unsigned int pAD;
extern void InitSystem( void );
extern void LevelHandle(void);
extern void DataHandle(void);
#endif // __HardwareProfile_h__
